﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkFlow.aspx.cs" Inherits="Flowmanage_WorkFlow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>流程管理</title>
    <link rel="stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" type="text/css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" />
    <script src="../Scripts/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/WorkFlow.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="ContentDiv">
            <asp:GridView ID="FlowList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="UserList_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="flow_name" HeaderText="名称" SortExpression="flow_name" />
                    <asp:BoundField DataField="flow_short" HeaderText="代码" SortExpression="flow_short" />
                    <asp:BoundField DataField="if_valid" HeaderText="是否有效" SortExpression="if_valid">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="ChargeStatus" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="状态切换" CommandName="Charge" CommandArgument='<%# Bind("flow_short")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <input id="AddFlow" type="button" value="新增流程"/>
            </div>      
        </div>
        <div id="AddFlowDiv" title="新增工作流程" class="DialogDiv">
            <div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;" id="MsgDiv"> 
	            <p style="padding:4px 2px;"><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span> 
	            <strong>提示:</strong><label id="JQmsg" runat="server" style="color:Red;"></label></p>
            </div>
            <fieldset>
                <p>
                    <label for="Flow_Name_A">
                        名称:</label>
                    <asp:TextBox ID="Flow_Name_A" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="12"></asp:TextBox></p>
                <p>
                    <label for="Flow_Short_A">
                        缩写:</label>
                    <asp:TextBox ID="Flow_Short_A" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="3"></asp:TextBox></p>
            </fieldset>
            <p class="ActionP">
                <asp:Button ID="BtnCreate" runat="server" Text="创建" OnClick="BtnCreate_Click" />
                <input id="BtnCancel" type="button" value="取消" /></p>
        </div> 
    </form>
</body>
</html>
